fn main() {
    println!("Hello, world!");

    let mut counter = 0;
    
    let result = loop {
        counter += 1;
        if counter == 10 {
            break counter * 2;
        }
    };

    println!("The result is: {}", result);

    let mut a = 0;
    while a <= 10 {
        a += 1;
    }

    println!("The a is: {}", a);

    let arr = [10,20,30,40,50];
    for element in arr.iter() {
        println!("The arr element point value is: {}",element)
    }

    for ele in arr {
        println!("The arr element value is: {}",ele)
    }

    for num in 1..4 {
        println!("The num is: {}",num)
    }

    for num in (1..4).rev() {
        println!("The num rev is: {}",num)
    }
}
